//
//  MineNoSetTVCell.m
//  Shine
//
//  Created by dllo on 16/3/11.
//  Copyright © 2016年 王斌. All rights reserved.
//

#import "MineNoSetTVCell.h"
#define WIDTHCVCELL self.contentView.frame.size.width
#define HEIGHTCVCELL self.contentView.frame.size.height
@implementation MineNoSetTVCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}

- (void)createCell{
    self.noWeightLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.noWeightLabel];
    self.personImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.personImageView];
    self.buttonSetWeight = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.contentView addSubview:self.buttonSetWeight];
    self.titleWeightLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.titleWeightLabel];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.noWeightLabel.frame = CGRectMake(10, 10, 200, 30);
    self.personImageView.frame = CGRectMake(10, 40, WIDTHCVCELL/2, 200);
    self.buttonSetWeight.frame = CGRectMake(WIDTHCVCELL-80, 10, 50, 50);
    self.titleWeightLabel.frame = CGRectMake(WIDTHCVCELL/2+50, 150, 50, 30);
    [self.titleWeightLabel sizeToFit];
    self.titleWeightLabel.numberOfLines = 0;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
